package com.hirsi.common.module.auth.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 登录方式
 */
@Getter
@AllArgsConstructor
public enum LoginTypeEnum {

    ACCOUNT(0, "账号密码登录"),
    PHONE(1, "手机验证码登录"),
    WECHAT(2, "微信登录");

    @EnumValue
    private Integer code;

    @JsonValue
    private String desc;
}
